const path = require('path');
function resolve (dir) {
    return path.join(__dirname, dir)
}

module.exports = {
  baseUrl: '/',
  outputDir: 'dist',
  lintOnSave: true,
  chainWebpack: (config)=>{
      config.resolve.alias
          .set('@$', resolve('src'))
          .set('assets',resolve('src/assets'))
          .set('components',resolve('src/components'))
          .set('layout',resolve('src/layout'))
          .set('base',resolve('src/base'))
          .set('static',resolve('src/static'))
  },
//module: {
//  rules: [
//      {
//          test: /\.css$/,
//          use: ['autoprefixer-loader']
//      },
//  ]
//	},
  devServer: {
    open: process.platform === 'darwin',
    host: '0.0.0.0',
    port: 8001,
    https: false,
    hotOnly: false
    // disableHostCheck: true,
    // See https://github.com/vuejs/vue-cli/blob/dev/docs/cli-service.md#configuring-proxy
  }
};